package pta.MOOC.ch02.ex14;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine().trim();
        String[] people = input.split(",");
        StringBuilder emailList = new StringBuilder();
        for (String person : people) {
            String[] info = person.split("/");
            String email = info[2];
            emailList.append(email).append(";");
        }
        System.out.println((emailList.toString()));
        scanner.close();
    }
}



